/**
 * Created by ceshi-room on 2018/1/11.
 */
export default (params) => {
  const name = params.url.split('/')[params.url.split('/').length - 1].split('.git')[0];
  return {
    url: params.url,
    name: name,
    tmp_dir: './tmp',
    add_commit_filename: 'README.md',
    cur_git_path: 'tmp/' + name + '/.git',
    test_git_path: 'tmp/' + name + '/.git',
    filePath: 'tmp/' + name + '/',
    commiter_name: params.account,
    commiter_email: params.email,
    master_branch_name: 'master',
    account: params.account,
    password: params.password
  }
}
